import http from '@/api/http.js'
export default {
    getLogList(data, cb, error) {
        data['order'] = ''
        data['orderField'] = ''
        data['creeateDateStart'] = data.operationTime ? data.operationTime[0] == '' ? null : data.operationTime[0] : null
        data['creeateDateEnd'] = data.operationTime ? data.operationTime[1] == '' ? null : data.operationTime[1] : null
        if (data.status == 111) {
            data.status = ''
        }
        http.$post('loginLogPage', { data: data }).then(res => {
            cb(res)
        })
    },
    getOperationLogList(data, cb, error) {
        data['order'] = ''
        data['orderField'] = ''
        data['creeateDateStart'] = data.operationTime ? data.operationTime[0] == '' ? null : data.operationTime[0] : null
        data['creeateDateEnd'] = data.operationTime ? data.operationTime[1] == '' ? null : data.operationTime[1] : null
        http.$post('operationLogPage', { data: data }).then(res => {
            cb(res)
        })
    }
}